﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {
    import Classes.*;

    public class TExpireLicense extends TFarmTransaction {

        protected var m_item:Item;

        public function TExpireLicense(_arg1:String){
            this.m_item = Global.gameSettings.getItemByName(_arg1);
        }
        override public function perform():void{
            signedCall("UserService.expireLicense", this.m_item.name);
        }
        override protected function onComplete(_arg1:Object):void{
            if (((((!((_arg1 == null))) && (_arg1.license))) && ((_arg1.license == this.m_item.name)))){
                if (Global.player.licenses){
                    Global.player.deleteLicense(this.m_item.name);
                };
            };
        }

    }
}//package Transactions 
